﻿namespace Infrastructure.ElasticSearch.Configuration
{
    public class ElasticSearchConfig
    {
        /// <summary>
        /// 连接字符串支持多个节点主机 使用|进行分隔
        /// 例如 localhost:9200|localhost:8200
        /// </summary>
        public string ConnectionStrings { get; set; }

        public string UserName { get; set; }

        public string PassWord { get; set; }

        public bool IsDebug { get; set; } = true;

        public string EnvironmentName { get; set; }

        public Indexes Indexes { get; set; }
    }

    public class Indexes
    {
        public string IndexName { get; set; } = "custnest";
        public string SyncStartTime { get; set; } = "2010-01-01";
        public string SyncIndexKey { get; set; }
        public string SyncDataKey { get; set; }

    }
}
